package designpattern.adapter;

/**
 * 适配器
 */
public class ProxyAdapter implements WhatIWant {
    WhatIHave iHave;

    public ProxyAdapter(WhatIHave iHave) {
        this.iHave = iHave;
    }

    @Override
    public void f() {
        iHave.g();
        iHave.h();
    }
}
